package com.hitqz.robot.api.business.enums;

import java.util.HashMap;

/**
 * @author xupkun
 * @date 2024/12/29
 */
public enum NavEnum {

    NONE(0, "无"),
    WAITING(1, "等待中"),
    RUNNING(2, "执行中"),
    SUSPENDED(3, "暂停中"),
    COMPLETED(4, "完成"),
    FAILED(5, "失败"),
    CANCEL(6, "取消"),

    ;

    public final static HashMap<Integer, String> NAV_STATUS = new HashMap<>();

    static  {
        for (NavEnum value : values()) {
            NavEnum.NAV_STATUS.put(value.getCode(), value.getNavStr());
        }
    }




    private int code;

    private String navStr;

    public int getCode() {
        return code;
    }

    public String getNavStr() {
        return navStr;
    }

    NavEnum(int code, String navStr) {
        this.code = code;
        this.navStr = navStr;
    }



}
